package service

import (
	"adam2/internal/vo"
	pDomain "anubis-framework/pkg/domain"
)

type MonitorCurrentPriceService interface {

	// 添加
	Add(addMonitorCurrentPriceVo *vo.AddMonitorCurrentPriceVo) *pDomain.ServiceResult

	// 根据transactionType、code、name、comparison、monitorPrice、available判断记录是否已经存在
	ExistByTransactionTypeAndCodeAndNameAndComparisonAndMonitorPriceAndAvailable(transactionType int, code string, name string, comparison int, monitorPrice float64, available int) *pDomain.ServiceResult

	// 分页显示
	Page(transactionType int, code string, name string, available int, pageNo int, pageSize int) *pDomain.ServiceResult

	// 根据id更新available
	UpdateAvailableById(id int, available int) *pDomain.ServiceResult

	// 删除监控
	DeleteMonitorCurrentPrice(id int) *pDomain.ServiceResult
}
